import logging


class Spider007Util:
    @staticmethod
    def get_match_status_text(status_code: int) -> str:
        """根据状态码获取比赛状态文本"""
        status_map = {
            -1: '已结束',
            0: '未开始',
            1: '上半场',
            2: '中场休息',
            3: '下半场',
            4: '取消',
            5: '推迟',
            -10: '取消',
            -11: '推迟',
            -13: '推迟',
            -14: '推迟'
        }
        if status_code not in status_map:
            logging.warning(f"未知状态码：{status_code}")
            return "未知状态"
        return status_map.get(status_code)
